package com.qianf.qfoffice.controller;

import com.qianf.qfoffice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @Autowired
    private UserService userService;

    @RequestMapping("/test1")
    @ResponseBody
    public String test1(){

        return "test"+userService.findUserByNo("EB100");
    }

}
